package com.guoheng.safe.sys.mapper.basicinfo;

import com.guoheng.safe.sys.model.basicinfo.ControlThreshold;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ControlThresholdMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ControlThreshold record);

    int insertSelective(ControlThreshold record);

    ControlThreshold selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ControlThreshold record);

    int updateByPrimaryKey(ControlThreshold record);

    List<ControlThreshold> selectAll(@Param("controlType") Integer controlType);

    ControlThreshold selectOne(@Param("controlType") Integer controlType, @Param("sensorNo")String sensorNo);
}